package MyFitnessPlate.DataSet;

public class ParsedLoginInfoDataSet {
	private String success = null;
	private String firstname = null;
    private String lastname=null;
    private String username=null;
    private String email=null;
    private String gender=null;
    private Double weight=null;
    private Double height=null;
    private Double age=null;
    private Double id=null;
 
    public String getsuccess() {return success;}
    public void setsuccess(String success) {this.success = success;}
    
    public String getfirstname() {return firstname;}
    public void setfirstname(String firstname) {this.firstname = firstname;}
    
    public String getlastname(){return lastname;}
    public void setlastname(String lastname){this.lastname=lastname;}
    
    public String getusername() {return username;}
    public void setusername(String username) {this.username = username;}
    
    public String getemail() {return email;}
    public void setemail(String email) {this.email = email;}
    
    public String getgender() {return gender;}
    public void setgender(String gender) {
    	if(gender.equals("1")){
    		this.gender = "Male";
    	} else if(gender.equals("0")){
    		this.gender = "Female";
    	} else {
    		this.gender = "Not set";
    	}
    }
    
    public Double getweight() {return weight;}
    public void setweight(String weight) {this.weight = Double.parseDouble(weight);}
    
    public Double getheight() {return height;}
    public void setheight(String height) {this.height = Double.parseDouble(height);}
    
    public Double getage() {return age;}
    public void setage(String age) {this.age = Double.parseDouble(age);}
    
    public Double getid() {return id;}
    public void setid(String id) {this.id = Double.parseDouble(id);}   
}